﻿<?php get_header(); ?>
<section class="carousel_wrapp">
	<div class="carousel">
		<?php if(have_posts()) :?>
		<?php while(have_posts()) : the_post();?>
			<article class="carousel_news">
				<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="carousel_image"><?php the_post_thumbnail('thumb-size-4');?></a>				
				<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"class="carousel_link"><?php the_title(); ?></a>
			</article>
		<?php endwhile; ?>
		<?php endif; ?>
	</div>
</section>
<section class="content">
	<div class="content_wrapp">
		<h1><?php the_category(', '); ?></h1>
		<div class="content_top">
			<a href="<?php bloginfo('url') ?>" title="Главная">Главная</a> 
			<span>&rarr;</span>
			<?php the_category(); ?>
		</div>
		<?php if(have_posts()) :?>
		<?php while(have_posts()) : the_post();?>
			<article class="main_posts">
				<a class="border_posts" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
					<?php the_post_thumbnail('thumb-size-4');?>
					<span class="main_border"></span>
				</a>
				<div class="main_part">
					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
					<span class="news_date"><a href="#" title="<?php the_time('m.d.Y'); ?>"><?php the_time('m.d.Y'); ?></a></span>
					<span class="news_autor"><a href="#" title="Админ"><?php the_author(); ?></a></span>
					<span class="news_category"><?php the_category(', '); ?></span>
					<?php the_excerpt(); ?>
					<span class="news_views"><a href="#" title="1560 просмотров">15 просмотров</a></span>	
					<span class="news_coments"><a href="<?php the_permalink(); ?>/#comments" title="414 комментариев"><?php comments_number(0, 1, '%'); ?> комментариев</a></span>	
					<a class="news_more" href="<?php the_permalink(); ?>" title="Подробнее">Подробнее</a>							
				</div>
			</article>
		<?php endwhile; ?>
		<?php endif; ?>
		<?php if (function_exists('wp_corenavi')) wp_corenavi(); ?>		
	</div>
	<?php get_sidebar(); ?>
</section>
<?php get_footer(); ?>